package com.hongyue.zuoYe.tiMu1;
/*
1.请定义“员工(类)”：
属性：姓名、性别、年龄(全部私有)
行为：工作(抽象)
无参、全参构造方法
get/set方法
 */
public abstract class YuanGong {
    private String mingZi;
    private String xinBie;
    private String nianLing;
    public abstract void GongZuo();

    public YuanGong(String mingZi, String xinBie, String nianLing) {
        this.mingZi = mingZi;
        this.xinBie = xinBie;
        this.nianLing = nianLing;
    }

    public YuanGong() {
    }

    public String getMingZi() {
        return mingZi;
    }

    public void setMingZi(String mingZi) {
        this.mingZi = mingZi;
    }

    public String getXinBie() {
        return xinBie;
    }

    public void setXinBie(String xinBie) {
        this.xinBie = xinBie;
    }

    public String getNianLing() {
        return nianLing;
    }

    public void setNianLing(String nianLing) {
        this.nianLing = nianLing;
    }
}
